﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace ServerManager.Models
{
    public class IpAddressViewModel
    {
        public int Id { get; set; }

        [Display(Name = "IP")]
        public string Ip { get; set; }

        /// <summary>
        /// 0 不可用 1 可用 2 被占用
        /// </summary>
        [Display(Name = "状态")]
        public byte Status { get; set; }

        [Display(Name = "备注")]
        public string Remark { get; set; }

        [Display(Name = "服务器")]
        public int ServerId { get; set; }

        [Display(Name = "服务器")]
        public string ServerPosition { get; set; }
    }
}
